feat(tests): add --parallel support for PHPUnit execution (#8)#29
Draft
feat(tests): add --parallel support for PHPUnit execution (#8)#29
Conversation
…it execution Implements: #8 - Add brianium/paratest as dev dependency - Add --parallel option to tests command - --parallel uses default worker count, --parallel=N specifies N workers - Filter PHPUnit arguments to keep only ParaTest-compatible options - Preserve coverage, filter, and test path options in parallel mode
…irectly for ParaTest
Signed-off-by: Felipe Sayão Lobato Abreu <github@mentordosnerds.com>
…stsCommand Signed-off-by: Felipe Sayão Lobato Abreu <github@mentordosnerds.com>
Contributor
Author
|
We are currently dealing with incompatible dependency versions that prevent ParaTest from functioning correctly. A concrete symptom of this issue is the following runtime error: This indicates that different or incompatible PHPUnit-related classes are being loaded together, which breaks execution before the test suite can run. Before we can reliably use ParaTest, we need to resolve these dependency mismatches and bring the full testing stack into a consistent state. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--paralleloption todev-tools testscommand for parallel test execution--parallelfor auto-detected worker count and--parallel=Nfor explicit worker countBreaking Change Notice
This feature requires the project to be run on PHP 8.3 or PHP 8.4. When running on PHP 8.5+, the
--paralleloption will automatically fall back to serial PHPUnit execution with a warning message.PHP 8.5+ Compatibility
Changes
--paralleloption with PHP 8.5+ detection and fallbackbrianium/paratestas dev dependencyUsage
Behavior
--parallelis opt-in (default behavior remains serial)Testing
Closes #8